﻿using System;

namespace Spencen.Mobile.UI
{
    public struct Dpi
    {
        private int _dpiX;
        private int _dpiY;

        public Dpi( int dpiX, int dpiY )
        {
            _dpiX = dpiX;
            _dpiY = dpiY;
        }

        public int X
        {
            get { return _dpiX; }
            set { _dpiX = value; }
        }

        public int Y
        {
            get { return _dpiY; }
            set { _dpiY = value; }
        }

        public float AspectRatio
        {
            get { return (float)X / (float)Y; }
        }
    }
}
